Deploy a Laravel 12 project in Railway

Configuration

First we need to create a database in railway

Pasted image 20260210121114.png

We click on db and we will be able to see the variables to configure our .env file:

Pasted image 20260210121208.png